import request from '@/utils/request'
import { downFile } from '@/utils/request'

export function getWorkshopList(query) {
  return request({
    url: '/mes/md/workshop/list',
    method: 'get',
    params: query,
  })
}

export function insertworkshop(data) {
  return request({
    url: '/mes/md/workshop/addWorkshop',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}


export function updateWorkshop(data) {
  return request({
    url: '/mes/md/workshop/updateWorkshop',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}


export function delWorkshop(data) {
  return request({
    url: '/mes/md/workshop/delWorkshop',
    method: 'post',
    data: data,
    contextType:"application/json"
  })
}
